package common;

import javax.servlet.*;
import javax.servlet.http.*;

public class China  {

	public static String getParameter(HttpServletRequest req,String para) {
		try {
			String tempStr = "";
			String temp[] = req.getParameterValues(para);
			if (temp == null) {
				tempStr = "";
				return "";
			}	
			//temp = new String(temp.getBytes("ISO8859_1"),"GBK");
			for (int i = 0; i < temp.length; i ++) {
				if (i != 0)	tempStr += ",";
				tempStr += new String(temp[i].getBytes("ISO8859_1"),"GBK");
				
			}	
			return tempStr;	
		} catch (Exception e) {
			System.out.println("china : has exception");
		}	
		return "";
	}
	
}